﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tools.DataAccess.Repository;
using RMMvcApplication.Model;

namespace RMMvcApplication.DataAccess
{
    public class RMMvcApplicationContext : ContextBase
    {
        public RMMvcApplicationContext(string connectionString)
            : base(connectionString)
        {
        }

        public RMMvcApplicationContext()
            : base()
        {
        }

        protected override void Initialize()
        {
            System.Data.Entity.Database.SetInitializer<RMMvcApplicationContext>(null);
            base.Initialize();
        }
        protected override void OnModelCreating(System.Data.Entity.DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.Entity<News>();
        }
    }
}
